//
//  OABaseNavViewController.m
//  maocuhuiOASystem
//
//  Created by michael on 16/3/20.
//  Copyright © 2016年 czd. All rights reserved.
//

#import "OABaseNavViewController.h"

@interface OABaseNavViewController ()

@end

@implementation OABaseNavViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self.navigationBar setBarStyle:UIBarStyleBlackOpaque];
//  self.navigationController.navigationBar.backgroundColor = [UIColor blueColor];
//  [[UINavigationBar appearance] setBarTintColor:[UIColor whiteColor]];
//    self.navigationBar.barTintColor = [UIColor whiteColor];
//    self.translucent = NO;
 if ([self respondsToSelector:@selector(automaticallyAdjustsScrollViewInsets)]) {
        self.automaticallyAdjustsScrollViewInsets = NO;
}

if([[[UIDevice currentDevice]systemVersion]doubleValue]>=7.0){
self.navigationBar.translucent = NO;


}


    NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:

[UIColor whiteColor],NSForegroundColorAttributeName, nil];
 
[self.navigationBar setTitleTextAttributes:attributes];

 self.navigationBar.barTintColor = [UIColor blueColor];

  
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
